fixed a mistake in charts controllers