Fix bug when mobile app sometimes goes against production in development mode.