Fixing bug in Ubuntu