fixed some minor problem.