fixed fresnel bug