You must select an asset before optimizing its parameters, not afterwards. Otherwise it takes the asset from the scrollbox and that is probably not the asset you want to optimize.

All about optimizing is in the tutorial, you can see in workshop 6 how to code a script for multi asset optimization.