util: fix bug in negative mod == 0