fix for 'value' logic