Small bug fix for loading modules.