Slight fix to sessions controller