Fix bug on pass function as parameter