Fixed fragmentation script