fixed some bugs
change session config