fix for get_constant_value