Fixing displayed error message