fixed building errors