fix timing