fix origin gateway lost