fix some bug in gcc.