fixes charts bug