Fix erratic panel shadows, fixes #157