Fix mass < to <=, add epsilon to masses.