fixed error in handling procedure application with no arguments