Incorrectly swapped to/from, resulting in failed dialog lookups. Now log
error on failed dialog looks as well.