fixed TypeError on parse_args