fixed to display errors