- fix other cases where 0 sized buffer might cause issues