Hosam,
The topology for half wave rectifier that you are using is impacted by the diode drop. The topology below closes the feedback loop around the diode so that the output tracks the input when rectifying. Note that this topology is inverting. This circuit…