Possible fix for docking ruined on tab switch