fix extend with 2 args return value.