safety; should be checked why JSON parsing fails in some situations
overlapping bars and invisible chart fix