Fix error class used.