fixed isDev bug