fix chart loader