Fixes for turning dev mode on, off, then on again. Or the reverse of that. Or whatever. Fixes for idiots who go crazy turning dev mode on and off.