Fixed the method isDevMode()