fixed a ugly bug with args