Fix recursive loop for babel