fixed fresnel equation problem