fixed sbt compile bugs