fix compatibility problem in ubuntu;