sun: fix bug in negative mod