fix modulo, thanks dcfn1