fix duplicate date printing