I have tested the code changing the value of the properties to null, etc. And it gives me the correct result. Any hint? Thanks