Fix API sbt function.