fix parameters order in the ip details function