fix demo mode