Fix: Hide inactive objects

fixes #5646