fix date groups