fix sunday index bug