Fix wrong parameter being passed