Fix ft calculation