Fixed: Script execution order (config fix)