Fix panel scripts