Fix bug for prebuid condition