fixed slight errors in panel scripts