Potential fix to the flickering shadows problem