Changed minor bug with frame 0