Thanks for advice and reminding ! resetFrames -> resizeFrames.