fix for session.getText api
Merge pull request #167 from TheKiteEatingTree/getText

Fix for session.getText api