fixing public flag on batch-flash