Fixed problems on ubuntu