fix route script bug