Nileshv-
If your peak detector is not returning the correct peak, you might try adjusting your Threshold/width values to get the first peak detected. Also, is it possible for you to post some sample data demonstrating the incorrect peak detector behavior?
Xaq