fix gcc compiling error