Fix custom template loading