Fix incorrect marker positions

Previously it's based on the mark values. The mark positions are wrong when I not setting start mark as 0 and end mark as 100.