CompareDialog deleted just after creation