Fix function called with parameters in the wrong order.