fixed small errors found when removing old files