Fixed a bug with function call after function relation was filtered out (closes #44)