Fix error classes