fixed contrller auto script bug