fixed gcc11 compile error