emomcms fix segfault when nb day > 255