Bug repair.

Couldn't change mode when first select some example.