Fix a bunch of copy/paste bugs