Fix compilation error with unrecognised arg exception