fixed on the fly frame size change