fix chart div bug