Not sure if you have a test case for this, but I think I saw a bug (not able to confirm without some more head scratching).
What I *think* I saw was a problem in the algorithm for revealing the blank patches... I think I had flagged a spot, and when it revealed the blank patch it replaced my flag with the adjacent mine count. Really not sure though. It might be working fine. -- John.