fixed a bug when computing cells of interest in java backend
Merge pull request #1160 from yilongli/master

fixed a bug when computing cells of interest in java backend