Fixed bug in update_dialog.js