fixed wrong frame start issue