Fix chart size bug