Fixed wrong order for $params merge

Function's params should override default params