fixes issue where multiple pwsLastSet results would cause date calculation to fail.