fix scoping issues with mdo (test dynbrk004)