fix concatenated scripts