Handle aml attrs correctly