fix proxy function length