[bugfix] setInterval receives a function object