[BUGFIX] Fix AMI error conversion