Fixed TaskDialog blocking