Resize bug fixed