fix layout panel raises 'target is null' error (firebug.js:2439)  fflorent