fixed some error message things