fix update more times add remote devices problem.and fix the update
initial problem