Fixed future to take error callback as second parameter in complete