fix TDDocument check if doc is bought