Fixed a little bug that makes dock cannot be selected after showing.