fix AWS API problem