fixed compile error on ubuntu