remove compact from each with object realisation
Merge branch 'hotfix/fix_each_with_object'