It's pretty hard to guess where your bug is sitting here with no codeand no idea even what you've done to trigger it.
At a guess there someplace you haven't detoasted a datum that had tobe detoasted. But like I said that's just a guess.