Solving dialog problem