Can you give an example of this happening? Which version of Postgres are you using? There are times when Postgres will see a 0 where there shouldn't be, but I don't think this is the right way to fix this. Give us a couple of examples where this is happening. Thanks!