fixed problem with session