fix type in template