Fix bug in future() function, now it can really work in parallel