Fixes #1159: custom templates were not load