Fixing error messages.