Fixed bug for date in week check.