update is setting frame index correctly.