Fixed boneheaded mistakes