fix parameters order

Legacy function for 0.5 apps has the parameters in wrong order