fixed days bug