fix lint and setImmediate