api update error fixed