Fixed Error inheritance