Fix flash_tag for compatibility with SafeBuffer