Masterworking: star attributes does not increase properly

I had an offhand weapon with Cooldown Reduction attribute.
The maximum value for it is 8% but when it rolls with a star attribute can go up to 12%. Mine had 12% of Cooldown Reduction, then I have masterworked it and according to the toolbar it should add +5% attribute value.

The value went from 12% to 12.4% which means it didn’t count the increase value of the star attribute… only for the base maximum which was 8%. I do not know if it is intended or not, but the tooltip was kind of misleading. If it says +5% I expect +5%…

Dupe of