fix the no session errors