fixes active dates bug