small fix to tracking code