fix select time
update code