If you power down the LCD before sleep you will need to reinitialize it on wakeup. Try placing flags = 0 just before @ SLEEP so PBP will reinitialize it first.

Or, if you're using an external oscillator, you might need a short delay after wakeup for it to stabilize before sending data to the display.