Fix bad wday index