Fixed typo that caused hsv detection result to be thrown away