idr: revert misallocation bug fix