Error with wrong varible name was fixed.