Fixed an issue in development mode where cms classes where registered multiple times