Fix bug in template thx @Plugin73