Fix some issues when module does not exist