fix two proplems in s3sleep plugin