Corrected bug where word frequency was not always being correctly calculated by parsing module