fixes bug when configured with app as default and staging and production on a specific account