fixed next day bug