Page tree generator 'active' state bug fix