fixed resize bug from chart refactoring