Fix bug from last fix, and a second bug caused by $Global::htmlModeDefault being accidentally called $Global::htmldisplayModeDefault in this file.
Changed paths: