Fixed bugs that setImmediate is not applied in get and remove