[bugfix] Fixed a couple of typos preventing the code from functioning properly.