fix scaffold direction