fix dialog mapping bug