fixes NPE in PropertiesPanel