Maybe some changes?
Finally works (thanks to QuantumPhi).