fix week index bug