Fixed session bug (config not loaded properly)