Correction of the resolution function for non-ideal peaks