object detection bug fix