set correct parent for error dialog message so that it is highlighted correctly