Fixed a problem when initializing module fails