Sale of Rental Property

I entered my sales information under sale of business property and then then went back to the asset summary screen and indicated that I had stopped using the asset. It then walked me thru inputting the sales info but now my sale has doubled? Where did I go wrong?
I had sales price of $40000.00
Cost was $22617 with $5400 of this allocated to land
Prior depreciation on structure was $17034
Cost of Improvements was $17306
Prior depreciation on Improvements was $11835
Sales expense was $2400