Fixed a bug with function calls.