Fixed the issue prevWord was never set