Fix time and host bug