Fixes a bug where the property toggle button would not be hidden