if deletion affect pattern path bug corrected