A corrected equation for the calculation of reflection coefficients