correct template error