Interesting idea, I would suggest you make this game level-based and give the player a goal like fighting a final boss.
I noticed the coin gain on each enemy can be 0 if I downgrade it, is it on purpose or it's a bug?
It's on purpose. The goal is to complete 6 levels in a row. Unfortunately, that's not entirely clear.