fix panel movement