Modified logic so that it fixes the 4 failures in CI
updated
Merge pull request #623 from AlinT/fix_details_fails

Modified logic so that it fixes the 4 failures in CI