Fix bug preventing walking entirely when typeofs are around