Fixed session errors