fix bug that prevented time edit