fix how DWIM mode works