Fixed some fragment stuff