Steps to reproduce:
- Create a list parameter, which depends on another parameter (let say either 1 -> [A, B], 2 -> [C, D])
- Select value 1, so that the parameter has list [A,B]
- Select value A
- Execute the script, and wait for finish
- Change to value 2
Actual result: the list has [A, C, D] parameters
Expected result: the list has [C, D] parameters only
Demo: https://gph.is/g/Evp9OXV
Reported by @autogun