Fixed processing of params in wrong order