fixed formatting issues for error display