fix bug of global scoped interval