Fixed error in sessions controller