fix some minor issues.