fix error throw when without module installed