fix error message when using default extension class fails