resize bug fixed