fix some errors in some files