fix error with empty week