This should fix the bug in the resampling offset fix function, but I don't think it actually does