Fix some shadow glitches.