Fix errors in common script.