Fix build error on v0.8.0