Fixed ubuntu's bugs