Fixed session autostarting issue