Fix constructor params wrongly added to class