Robustness added against wrong scaffold input