fix

fix the bugs of toSeries.  It run badly in no-ajax-app.