fix empty scaffolds