fixing bad usage of produced set