fixed problem with opencv