fixed error display bug