update agent bug