Fix errors with commit flag.