fixes on sessions