fixed typo in resize helper