fix work dialog always running