Fix call to method add on non object.