fixed crash of debug