Fix a bug that built target every time