 		archive=$(cat "$ARCHIVE/$3.arch")
 		markers=($(echo -e -n "$archive\n" | head -1 | sed -e 's/:/\n/g'))
 		tree=`echo -e -n "$archive\n" | head -n $((${markers[1]}-1)) | tail -n +$((${markers[0]}))`
-		minLine=$((${lines[0]}-${markers[1]}))
+		minLine=$((${lines[0]}-${markers[1]}+1))
 		if [[ $((${lines[1]}-${lines[0]})) -ne 0 ]]; then
 			while read -r line; do
 				array=($(echo $line))

					if ! [[ -z $base ]]; then
						ROOT=$(get_root_path "$archive")
						local path=$(get_full_path "$target" "$current" "$archive" | sed 's/'"$base"'//')
						if [[ $current != '/' ]]; then
							path=$(remove_last_slash "$path")
						fi
						if [[ $path == '1' ]]; then
							echo "Wrong path: too many double dots!"
						elif [[ "$(check_dir_path $path $archive)" == true ]]; then
							local lines="$(get_file_lines $path $base $archive)"
							local code=$?
							if [[ $code == 0 ]]; then
								local start_line=$(cut -d' ' -f1 <<< "$lines")
								local end_line=$(cut -d' ' -f2 <<< "$lines")
								local text=$(sed -n ${start_line},${end_line}p "$ARCHIVE"/"$archive".arch)
								echo "$text"
							elif [[ $code == 2 ]]; then
								echo ''
							else echo "File $base not found."
							fi
						fi
					else echo "$target: Not a directory"

					local file=$(get_full_path_file "$fullpath")
					local linesToDelete=$(remove_file "$path" "$file" "$archive")
					if [[ $linesToDelete -ne false ]]; then
						sed -i "$linesToDelete"d "archives/$archive.arch"
						update_markers "1" "$archive"
						echo "File $file removed."
					else
