Fixed a crash loading modules