Fixed getting file body instead of model in amazon s3 adapter