bin script bug fixed