Fix Bugs in Linux