fixed some mistakes

Always haste makes mistakes.