fix mixed scripts