Fixed passing nil as a parameter.