Fix peak position correctionw
Peak position correction fixes. Now compatible with current settings