FIX: bug in get templates