Gitlab is auto switching from CE to EE and EE to CE

Dear Team,

Our gitlab instance setup is switching from Community Edition to Enterprise Edition and sometimes Enterprise edition to Community edition.

Could you please help us how to resolve this issue.

We did a small mistake while installation, First we installed EE and uninstalled EE but we did not remove the files and directory from the server, then we installed CE.

Server : Centos 7

Right now our gitlab server is in production environment, Please suggest how to sort this issues.

Thanks in advance.