trying to fix 9-grid bug