Fixed an issue where rotating the screen would duplicate the PreInflateFragment