fix bugs, fix DockShow method