fixed error display

@zoheiry