Fixing usage of typed template