Fix decorators  to use the distribution.targets instead of context.targets where appropriate.