fixed bugs in ubuntu