Fix bug with wrong parameter name in consturctor.