Fixed leaking of fragments.