I think I might have fixed your issue, though the bug was hard to recreate. Going between underground layers while not snapped onto the grid seemed to result in something similar to what you described and that was easily remedied.