fix error when calling a function with too much parameters