masks and blending: fix bug in legacy parameter handling