Fix for panel not appearing first time. [1765]