fix some issue logic for display chart