Fix warning regarding panel not being added to viewport