fixed a few typos

These changes do not impact anything functionally, but reading the code I thought it would be nice to fix them. :smile: