Fixed null pointer bug with kinect