script bug correction