fixed bug with chart day-changing