Swap min max port for passive mode

Passive mode won't work if min > max