fixed illegal thread state exception in autoSelector