Fixing session bug
Merge pull request #189 from thiagopnts/master

Small fix for issue #184