Investors & landlords

I am in a similar situation I would like to know how/if to possibly correct past under reported depreciation. Also does this affect the tax basis reported when selling a rental for a gain? Everything I've read says that when selling a rental for a gain, you use the purchase price, even if you converted it to a rental at some point during its life.