Fixed wrong segment being selected first click