fixed create buffer