fixes session problem