[core] fix flash tag generation