Fixed bug in space hashing.