[fix] preprocess_entity: issue 7974591#40
Merge pull request #5 from EtienneRd/preprocess_entity

[fix] preprocess_entity: issue 7974591#40