fixed bug when splitting up fragment can result in empty fragment file