fixed timer delay bug