fix timing bug
init