Fixed bug where module key was not substituted.