fix wait dialog if double start