fix bug run on ubuntu