don't add empty buffers to the template