fixed bug that occurs when all remarks are withing a single sample

The remark sample was not drawn on the timeline because the maxRemarks
num was not correct, resulting in an invalid calculation result.