Fix infinitely blocking writers