fixed compile error with latest rust library