fix dynamodb problem