fix to check configuration in on_load method