Tags are missing in sidebar (happened on MacOS)

Testing version:

What were you doing:
Using Bear on both iOS and MacOS

What feature did you use:
Just writing and tagging stuff

What happened:
Some tags went missing from the sidebar, and those notes using the tags appeared on the untagged section. But inside the notes the tag was present. This is on my mac. But when I checked on iOS all the tags were there shown on sidebar. When I edit the note, the tags become detected.

I had almost 200 notes with different tags that disappeared!