fixed bug in reading points from keyframe.