fixed access to records flagged as deleted