Fix a bug with partial plots for factors.