fix bug in wrapping amazon aws-sdk