fixed charts bug