fixed hasError class output