Fix charts resize problem