bug fix

fixed a bug with session system