Bug fixing part.n

I just want to format my code, but seems I had not did well...