Issue when using lcd widget and physical lcd

I’m surprised that this actually works, and I’d be even more surprised if it continues to work consistently over a period of time.
You should read this…

I think it would be useful if you posted both of these sketches.

It would also be useful if you told us whether you are using the LCD widget in simple or advanced mode, and which virtual datastream it’s attached to.

Pete.