fix edit of time