fix bugs session controller