fix some minor bug.
format the codes.