typo bugfix: method 'text' is undefined