Fixed bug in spell-checker with custom dictionary by changing order of function calls.