fixes bug re: missing arguments in function calls