fixed session errors