Bug fix for spacial hash.
WIP Opt