fix allowDev logic