change the resize bug