Improved processing of 'Parameter 4' in material-related fields

The determination of 'Parameter 4' in various material-related fields now works correctly when a value is entered manually. This ensures that entered values are processed consistently in the relevant situations.