possible fix for infinite death / wall slide glitch