[Kinect] repair reverse if condition