Fix compilation error with Manifest (scalajs bug?)
Some bugs fixed.