fixed bug in -main where args wasn't called with apply