ConnectedComponent: Fixed hash bug