Djsopnet: fix safe_split method