fixed a sharePanel bug