corrected some bugs in linux