fixed perpetual build bug