move bad x/y index to debugging