fixed some errors: