fixed incorrect bucket buffer copy