fix site panel close modal bug