Fixed bug in function call code