Fix two errorDialog usages