Fix segfault on ui.text action in 64-bit build.

I have no idea why this fixes the issue.  :(

Fixes #261.