Remark on the distances of long-period variables