Fixed bug regarding .hideSelectionWidget