fixing sessions