Initial writingBounds bug fix