fix bug in linux2