Switching panels animation fix.