main page bug fixed, production mode