Fix old buildPanel problem