Fixed inactive days bug.