fixes resize_to_fit to resize