[Compatibility] Make it compilable with v0.12.