Added binding to session to fix errors