Fix a compiler error in changing the constructor of Fragments.