Mirror bug fix and gofmt