fix notifications count condition