Fixed the fragments to be public and static.