fixing avr ref