With and WithIndex return error from the closure