fixed sunday bug