fix Bugs in Ubuntu