Fix NoMethodError by updating method name.