Fixed bug that confused IAM ids with names