fix bug that notification will not be poped up when the last one is removed