fix type of resize