Attempt at fixing error message