Fixed shape resize bug