Hello Mafuyu,
You didn’t specify how you installed your keyboard layout, maybe you moved it to one of the Library folders?
Anyway, to elaborate on what Sorin wrote:
I always install and uninstall my customized keyboard layouts with Ukelele’s Organiser (available over the File menu: File > Install…)
That helps keep things organized and prevents problems such as you are experiencing, e.g. because it forces you to uninstall a keyboard layout before editing it.
One has to realize that keyboard layouts are part of the system software and should be handled accordingly.
Anyway, in your current situation, it’s best to uninstall all custom layouts, with the Organiser or by removing them from their folder with the Finder.
I believe you need to choose an Apple-provided keyboard layout (in the menu bar) before you can do that.
Then log out your macOS user and back in.
After that, you can open the latest version of your layout and install it with the Organiser.
In some cases, it seems necessary to restart the Mac, not just log out, to make it forget the old situation.