Refacoring
Fixed leaking of fragments.