AS1/2 loops compilation fix