demo mode fix