fix some copy/paste bugs