fix sunday bug