Map function weird behaviour

No, I haven't. I'll try today.

I've connected TPS output to analog input. TPS (3-wire) is potentiometer where resistances change with throttle openning.