Fixed a bug with rotating the charts