Fix bug in NotifyDialog due to bad use of SparseBooleanArray