fixing fragment stuff