fix potential infinite loop when entering help files