Fixed some error messages.