Fixes problem with function parameters