fix bug in linux