I've sent a pull request upstream to fix this bug: https://github.com/OpenChemistry/avogadrolibs/pull/825 While I'm very sure the fix can't cause further breakage, I'm still unsure how the problem actually arises. Aritz Erkiaga