fixed recursive build problem