fixing sessions issues