fixed a bug in commonality