bug fix in sessions controller