Fix issue with Match Error due to partial function chaining (It was returning 500 errors randomly when using session).
Merge pull request #23 from gramk/500-fix

Fix issue with Match Error due to partial function chaining