Fixed refcnt bugs
clang_format.