fixed a bug that apears if frames are 00