fixed a problem with session