fix button object detection issue