Fixed frame size bug