Fixed immer state number conflict with on/off