Fixes variable typo; this is why we need unit tests