bug fix of error diplay