fixed TypeError from converting ProcId to integer.