@dorey's template fix