fixed idbase_build()