Fixed Dialog Bug