Bug with map editor

When I want to customize a map in the map editor, I encounter a bug. I create a custom upgrade, for example, upgrading gold production by Peons (orc workers). I modify the unit to be affected by the upgrade, but when I play the map and perform the upgrade (research), it doesn’t work.
Could you please help me?

Come to the Hive discord server for help: https://discord.gg/8PNY2dAK