Fixing the magit new instance issue