Fix error class