Fix error from aws-sdk