Fix compiling error for fast charge