Fixed day bug

Fixed day bug