fix bug variables in template + advancement tutorial