Fixed a bug I caused a couple commits ago in toDominoFriendly