template errors be a bitch