bugfix for chart back logic