Fix setTimeout scope