Fixed a bug where external calls would not function