Fixed the motion track example

The motion-track example wasn't working out of the box, I made a few fixes and now it works great.