fix bugs in linux