Fix issue where text isnt defined

Lazy.
Proper fix.

Lazy+5
Merge pull request #6 from JohnMcLear/master

Fix #4