small fix for undefined as property value for undo