fixed bug in Future.sideEffect