fix bug where templates were not applied during synthesis when morphological rules were linearly ordered