fixed bug for building