fixed s3 erasing in url handler