fixed s3 loading issue