Fix maintenance mode