fixed avr generation issues