Fix two copy/paste bugs