fixed bugs with next day