fix the scaffolding checking