Bugfix for OpenCV detection