Fix Bugs in Ubuntu 1304