fix some small problems.