Fix error in sessions

Fix error create/destroy session