fixed a parsing bug where nested function calls would not be skipped over properly