Fixed problem with repeated compounds in reactions