messagedialog bug fixed