fixed bug which broke compute qdotq/atom