Fix -E flag in sed to -r