Fix for session.getText api