badge and catch .txt error