Fix some bugs.
Adding the parameter position to the function.
It works!