Modify some methods' name.
Fix setPrimaryFragment.