Fixed AmazonS3 get function