fixed compilation issue

Fixes the compilation issue in S3 sink