fix waiting dialog