fixed chart changing size bug