Fix n50 computation bug