fixing tracking code bug