fixed fitToFrame