Bug fix iside loadConfig file