Fix, changed to algorithm used in presentation