fix build error on g++
fix bug