fix a crash where when more than one head was on screen, dragging a previous head would cause a crash