Fixed another prospective bug in calcComposition