fixing flagging dates