fix marked dates bug