fixed glenn's bugs in object tracking