Fix isDev check