the broker should be adjusting the cost basis in the 1099 to account for wash sale. are you not seeing that? what broker are you using?