fixed some errors

fixed some errors