Fixed error in template