Fix bugs in walking up bridges with slopes underneath