Error on template fixed