Fixing panel scripts