Fix switching between modes for noolite