Fixed another bug when populating molecules