fix not initialized panel issue