fixed hasErrors