Fixing panel switching.