fixing bug in chinese remainder fpoly