fixed bug on ubuntu