Solved several bugs on cytoscape graph and performance issues