Fixed a bug with the new quad tree handling.