Fix charts bug