bugfix do_not_disturb code