fixed Sunday issue