Fixed issue in session controller