Fix infinite loop. Go to next attribute