Fixed bug where wrong number of args caused segfault.