arithmetic bug fix in Notiservice