Fixed some error message printouts