Fixed javascript error on panel 1