Fixed date rendering bug