fix a bug for renderbatch