fixed a bug with custom template names, 2x