Fix bug with new version of opencv