Minor Type Correction

Reading the logic, saw a few typos. Feel free to just fix them and not bother with a PR.