bugfix for mod output -> big integer

Thanks to lispro06 on github