fix dialog bug

Change-Id: I0cd983aeb1a3a1d193843043d12da6fee5cc8636