Fix wrong variable passed to addParams in __construct