Fixed minor, but vital, bug in moleculeCompare