Hopefully fix level.in_dialog to work again.