Fix rental cost basis without changing prior year depreciation

I brought a rental 4 years ago and entered the purchase price of $385k as the cost.  I then added the closing cost of $12k and water heater $2k as additional assets for 27.5 yrs depreciation.  I did NOT update the rental cost basis to include them.  I am selling the rental now and just learnt that these should be included in rental cost basis in order to get the accurate capital gain.  How do I fix the cost basis without affecting previous depreciation?  Thanks