Fixed a couple bugs in build inherits.