Fix local declarations of function's arguments