fixed issue w/ writing when queue size is 1