[buffer][fix] avoid warning