fixes for quad tree