Fix a bug, because of empty constructor in fragment.