fixed buffer init with 0