fixing error display