Merge pull request #18 from jimmyli97/develop

Bugfix for AbstractModules.replaceElements()