ensure that data[0] is set to NULL for next frame