Fixed module loader crash when debug mode was disabled