fix loading frame size