fix bug 845164 - Prevent slug heirarchy JS change