Fixed a few mistypings, works correctly now