Ajustes no automata apa.amd

Fixes #539
Merge pull request #601 from robertatakenaka/tk_539

Ajustes no automata apa.amd