Fix missed refactoring error in AMF.