fixed a vital bug when calculate support