fix invalid container

hi, 

   I found `container` would be invalid when route changed, so I just select it every time when `config.container` is set by user. Does that make sense?

thanks.
Sorry, forgot that:(