fix minor bug in draw matches
draw trajectory