Fixed error that reset consecutive days to 0 instead of 1 after missing a day