Fix error inheritance.