fix some bug in linux