updating avalon to get rid of endforeach bug