fixed some error messages