resize bug