bugfix in days counter