fix wb_get error where data was being corrupted