Fix tuplet error estimation function