Fix cut-and-paste errors