implemented workarround accross https://issues.scala-lang.org/browse/SI-8953