Fix/term length and corrupt dictionary