fixed issues with sesions