Fix bug that app won't rebuild in the next request after failing to build.