Fix variables as function parameters