fixes https://groups.google.com/d/msg/scala-language/C7Pm6ab1sPs/H2mEfMSwKJ0J