fixing error message