How to Change from Custom Doctype to Normal Doctype?

I have a site running on production mode and I have erpnext and a custom app installed on this site. I created a few custom doctypes on erpnext and later realized that it is better to move those doctypes to the custom app. And so when I bench set-config developer_mode 1 for that site, and also on common_site_config.

I can see on the doctype saying:

This site is running in developer mode. Any change made here will be updated in code.
If you just want to customize for your site, use Customize Form instead.

But I couldn’t uncheck the custom checkbox to move it to my custom app’s module.

Some days before, I did that on another site, may be I did bench restart or clear-cache, and it worked! But not sure why I couldn’t do it now? Am I missing something!?

The solution that I found was that I need to change my account to Administrator. Meaning, during setup after login - we usually change our email from administrator to something, but we kinda believe that we are still using the admin account. But when I logged out from this email and logged in again as “Administrator” and its password. I was able to uncheck the custom checkbox!

Now sure why it’s like that, but it works!