Automatically reset the parser when text is loaded