fix some sort panel issue