fix a bug about Double counts