trying to avoid planning through walls bug