fixed error under ubuntu