fix some minor errors in the template