Corrected calculation of reflection vector