fixing bug in template 'weekday-after'