Fix errorhandling of static properties (partly)