fix a bug in the code for manual tracking.