[BUGFIX] load config and call hook before the other hooks

this bugfix is very important, because other hooks like "after_load_content" can not use the config.