Fix issue when changing repos in same browser window