fixed iad resetting bug