Fix setting last_date