Fixed some error messages