fix for issue https://github.com/japgolly/scalajs-react/issues/14