fix resize method usage