avoid access violation when adding non-numerical or non-string values