Fix bug in case of empty fronts.