fix custom modules to add custom tempaltes dire properly