Fix ninja exception on promises. sharing works