coverity: CID 1063298 Division or modulo by zero