fixed indexing in qdotq/atom
fixed issues in cluster_qdotq/atom