GS-WDS07 433Mhz Door sensor with open/close status

I’ve got one sensor with strange behaviour. I’ve installed it on a metallic frame window. It detects only the open signal, not the close one.

Removing the sensor from the metallic window frame, and testing it, everything works as should be. Maybe it is getting some sort of interference,