Fix error when trying to load an invalid module, close #21