Fix SQS script