Fixed bug where multiple arguments to functions would all have the same value