Configuration fixes for production environment and a bug fix for the app