[BUGFIX] Wrong handling of last increment ids if date has changed