fix building buffer with certain CMs when treecasting