fix favorite dialog.