Fix pear errors

Correctly pass config template through