adds workaround for issue https://code.google.com/p/go/issues/detail?id=6121