Fixed 64-bit segfault.