REALLY fixed resize bug